package com.zhu.instructions.constants;

import com.zhu.instructions.base.NoOperandsInstruction;
import com.zhu.rtda.Frame;
/**
 * iconst_1: 将 int 常量 1 压入操作数栈
 */
public class ICONST_1 extends NoOperandsInstruction {

    @Override
    public void execute(Frame frame) {
        frame.getOperandStack().pushInt(1);
    }

    @Override
    public String toString() {
        return "iconst_1";
    }
}
